package net.wanho.service.impl;

import lombok.RequiredArgsConstructor;
import net.wanho.entity.Perms;
import net.wanho.mapper.PermsMapper;
import net.wanho.service.PermsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-01-05 15:42
 * Description：<描述>
 */
@Service
@RequiredArgsConstructor
public class PermsServiceImpl implements PermsService {

    private final PermsMapper permsMapper;

    @Override
    public List<Perms> findByRoleId(Integer roleId) {
        return permsMapper.selectByRoleId(roleId);
    }
}
